package hmyg

import (
	api "iotall/iottest/entity"
	"strconv"
)

func Start() {

	var firstid = int(api.GloabSetting.StartId)
	if firstid < 10 {
		firstid *= 10000000000
	} else {
		firstid *= 1000000000
	}
	for i := 0; i <= api.GloabSetting.IdCount-1; i++ {
		var sid = strconv.Itoa(firstid + i)
		var client = NewClient(sid)
		go client.Start()

	}
}
